--
-- @Author:      name
-- @DateTime:    2018-03-30 23:05:48
-- @Description: redis操作
local skynet = require "skynet"
local Hotfix = require("Hotfix")
local MessageDispatch = import( "MessageDispatch")
local MessageHandler = import("redis.MessageHandler")

global = {}
local function init()
	local hotfix = Hotfix.new()
	hotfix:start()
	global.hotfix = hotfix	
	local message_dispatch = MessageDispatch.new()	
	local message_handler = MessageHandler.new(message_dispatch)
	-- lua消息派发
	skynet.dispatch("lua", message_dispatch:dispatchLua())	
end


-- 启动服务
skynet.start(function()
	init()

end)

